#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
	int a[105], b[105], i, j, n;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> a[i];
	}
	for (int i = 0; i < n; i++)
	{
		b[i] = 0;
		for (int j = 0; j <= i - 1; j++)
		{
			if (a[j] < a[i])
				b[i]++;
		}
		cout << b[i] << " ";
	}
	return 0;
}